<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <title th:text="${session.title}">123</title>
    <link th:replace="common/header" />
    <link rel="stylesheet" th:href="@{/css/ace-skins.min.css}" />
    <script type="text/javascript" th:src="@{/js/layer/tip.js}"></script>
    <link rel="stylesheet" th:href="@{/css/dropzone.css}" />
    <script th:src="@{/js/dropzone/dropzone.js}"></script>
</head>
<body class="navbar-fixed">
<div th:replace="common/top"></div>
<div class="container-fluid main_bg" id="main-container">
    <a id="menu-toggler" href="#"><span></span></a>
    <div th:replace="common/menu"></div>
    <div id="main-content" class="clearfix">
        <div id="page-content" class="clearfix">
            <div th:replace="common/title"></div>
            <h3 class="header smaller lighter blue"><em class="icon-plus"></em>添加图库记录<small>
                您可以随意拖放图像到对应的区域内</small></h3>
            <div id="dropzone">
                <form class="dropzone" th:object="${photo}" method="post" th:action="@{/foot/photo/addMore}" name="form" enctype="multipart/form-data" th:if="${session.footUser.qx.text == '管理员'}">
                    <input type="hidden" name="type" th:field="*{type}" id="type"/>
                    <div class="fallback">
                        <input name="file" type="file" multiple="" />
                    </div>
                    <span style="color:red"><span th:text="${msg}">Name Error</span>&nbsp;</span>
                </form>
            </div>
            <div class="row-fluid">
                <div class="text-center span12">
                    <a id="btnsave" class="btn btn-primary" type="button" th:href="@{/foot/photo/saveMore(fl=${photo.type})}"><em class="icon-save"></em>提交</a>
                    <button class="btn btn-danger" type="reset"><em class="icon-remove"></em>取消</button>
                    <a class="btn" type="button" th:href="@{/foot/photo/search}"><em class="icon-arrow-left"></em>返回</a>
                </div>
            </div>
            <!--/#page-content-->
        </div>
        <div th:replace="common/skin :: skin"></div>
    </div>
    <!--/#main-content-->
</div>
<!--/.fluid-container#main-container-->
<div th:replace="common/js"></div>
<link rel="stylesheet" th:href="@{/css/colorbox.min.css}"/>
<script th:src="@{/js/colorbox/jquery.colorbox.min.js}"></script>
<script th:src="@{/js/colorbox/colorbox.js}"></script>
</body>
</html>